package com.xmy.erp.mapper;

import com.xmy.erp.entity.AppointSchool;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 指定校区 Mapper 接口
 * </p>
 *
 * @author hpiggy
 * @since 2023-09-09
 */
public interface AppointSchoolMapper extends BaseMapper<AppointSchool> {
    @Select("select school_id from appoint_school where for_id = #{forId} and type = #{type} and deleted = 0")
    public abstract List<Long> getSchoolIdListForForId(@Param("forId") Long forId, @Param("type") Integer type);
}
